/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

/**
 *
 * @author chenx
 */
public class Calculator {
    String a;
    String b;
    public Calculator(String a,String b){
        this.a=a;
        this.b=b;
    }
    public static Double sum(String a,String b){
        Double c=Double.parseDouble(a);
        Double d=Double.parseDouble(b);
        Double sum=c+d;
        return sum;
    }
}
